package com.bosicloud.cmb.ibp.aws.adapter.commom.model;

import java.util.HashMap;
import java.util.Map;

public class SQSInfo {

    private static class SQSi {

        SQSi(String url, String arn) {
            this.url = url;
            this.arn = arn;
        }

        String url;
        String arn;
    }

    private static Map<String, SQSi> INFO_MAP = new HashMap<>();

    public static String getARN(String name) {
        return INFO_MAP.get(name).arn;
    }

    public static String getURL(String name) {
        return INFO_MAP.get(name).url;
    }

    public static void put(String name, String url, String arn) {
        INFO_MAP.put(name, new SQSi(url, arn));
    }

}
